package com.im.util;

import java.util.Map;

public class MapUtils {

    //是否包含，且不为null，可为空
    public static boolean isNUllMapKey(Map<String,Object> sourceMap, String keyName){
        if(sourceMap.containsKey(keyName) && sourceMap.get(keyName) != null){
            return false;
        }
        return true;
    }
    //是否包含，且不为null，不为空
    public static boolean isEemptyMapKey(Map<String,Object> sourceMap, String keyName){
        if(sourceMap.containsKey(keyName) && sourceMap.get(keyName) != null && !"".equals(sourceMap.get(keyName))){
            return false;
        }
        return true;
    }

}
